home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12773 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: nntpd.lkg.dec.com!usenet
  2. From: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
  3. Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c
  4. Subject: Re: getting correct local time in VAX C program
  5. Date: 2 Apr 1996 19:01:12 GMT
  6. Organization: Digital Equipment Corp
  7. Distribution: world
  8. Message-ID: <4jrtho$ror@nntpd.lkg.dec.com>
  9. References: <4jec36$ff3@lastactionhero.rs.itd.umich.edu>
  10. Reply-To: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
  11. NNTP-Posting-Host: xdelta.enet.dec.com
  12. X-Newsreader: mxrn 6.18-32
  13.  
  14.  
  15. In article <4jec36$ff3@lastactionhero.rs.itd.umich.edu>, raffel@umich.edu (David Raffel) writes:
  16. :Are there any routines available that will return the correct
  17. :local time, or any suggestions for how I can get the correct
  18. :time?
  19.  
  20.   VAX C V3.1 is a veritable antique by present standards -- V3.2 is five
  21.   or six years old.  The current C compiler for OpenVMS VAX is DEC C, and
  22.   V5.2 is the current release.  (Both VAX C V3.2 and DEC C can coexist on
  23.   the same OpenVMS VAX system, and both are enabled with the "C" license.
  24.   DEC C requires a run-time kit -- in the distribution directory with the
  25.   DEC C compiler -- for OpenVMS V5.5 through V6.0 inclusive.  The run-time
  26.   kit is not necessary on and should not be installed on V6.1 or later.)
  27.  
  28.   DEC C V5.2 and OpenVMS V7.0 do include timezone support -- the VAX C
  29.   compiler does not.  (OpenVMS V6.0 and later include the RTL support for
  30.   UTC and similar, and much of the underpinnings necessary for solving
  31.   this problem are present starting in that release -- gmtime and friends
  32.   first return non-zero values on OpenVMS V7.0.)
  33.  
  34.   Prior to the V5.2/V7.0 release, you will need to implement the TDF
  35.   calculations yourself.  This task is easiest on V6.0 and later, as the
  36.   services are available.
  37.  
  38.   ------------------------- pure personal opinion ---------------------------
  39.    Stephen Hoffman      OpenVMS Engineering      hoffman@xdelta.enet.dec.com
  40.   ---------------------------------------------------------------------------
  41.  
  42.